package com.cz.kingdee;

import com.kingdee.bos.webapi.entity.IdentifyInfo;
import com.kingdee.bos.webapi.sdk.K3CloudApi;

public class KingdeeClient {

    public KingdeeClient() {
    }

    /**
     * 获取测试环境的KingdeeClient
     * @return
     */



    public K3CloudApi getTestKingdeeClient() {
        IdentifyInfo identifyInfo = new IdentifyInfo();
        identifyInfo.setServerUrl("https://sade1.test.ik3cloud.com/k3cloud/");
        identifyInfo.setAppId("218327_7YeAx/lp3JnXw/TsR4To1a/sRLS7QKtp");
        identifyInfo.setAppSecret("98cc5883e7f348a19cc44e1529a98b51");
        identifyInfo.setdCID("1715355003755004928");
        identifyInfo.setUserName("administrator");
        K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
        return k3CloudApi;
    }

    public K3CloudApi getProdKingdeeClient() {
        IdentifyInfo identifyInfo = new IdentifyInfo();
        identifyInfo.setServerUrl("https://sade.ik3cloud.com/k3cloud/");
        identifyInfo.setAppId("277729_w78D3dku5nnZS4XF5ZwpS7zL1NS6RAKu");
        identifyInfo.setAppSecret("d9a0b665440e4b308d5fbd2296ea128e");
        identifyInfo.setdCID("6041837ebb996b");
        identifyInfo.setUserName("MesCall");
        K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
        return k3CloudApi;
    }

}
